package com.jdy.haoduoaiteacher.view.slider.Transformers;//package com.jdy.haoduoai.view.slider.Transformers;
//
//import android.view.View;
//
//import com.nineoldandroids.view.ViewHelper;
//
//public class ZoomInTransformer extends BaseTransformer {
//
//  @Override
//  protected void onTransform(View view, float position) {
//    final float scale = position < 0 ? position + 1f : Math.abs(1f - position);
//    ViewHelper.setScaleX(view, scale);
//    ViewHelper.setScaleY(view, scale);
//    ViewHelper.setPivotX(view, view.getWidth() * 0.5f);
//    ViewHelper.setPivotY(view, view.getHeight() * 0.5f);
//    ViewHelper.setAlpha(view, position < -1f || position > 1f ? 0f
//        : 1f - (scale - 1f));
//  }
//
// }
